﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wild2.Models.ViewTabs
{
    public class ViewTabs
    {
        public static void setCurrentTab(String controller, String view)
        {
            HttpContext.Current.Session[Wild2.Models.Constants.SessionConstants.LAST_TAB] = controller + "|" + view;
        }

        public static string getCurrentTab()
        {
            Object lastTab = HttpContext.Current.Session[Wild2.Models.Constants.SessionConstants.LAST_TAB];
            if (lastTab != null) return lastTab.ToString();
            return "";
        }
    }
}